package cn.dnui_cr503.dnuifood_16110100503.service;

import cn.dnui_cr503.dnuifood_16110100503.bean.ResultBean;
import cn.dnui_cr503.dnuifood_16110100503.bean.UserBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by chengrui on 2018/10/12.
 */

public interface UserService {
    @GET("userLogin.do")
    Call<UserBean> doLogin(@Query("username") String username, @Query("userpass") String userpass);

    @GET("userRegister.do")
    Call<ResultBean> doRegister(
            @Query("username") String username,
            @Query("userpass") String userpass,
            @Query("mobilenum") String mobilenum,
            @Query("address") String address,
            @Query("comment") String comment
    );

}
